<template>
  <div>    
    <div>
      <el-button
        type="info"
        icon="el-icon-arrow-left"
        size="mini"
        @click="fanhuiClick"
        >返回</el-button
      >
    </div>

    <div>
      <el-form
        label-width="80px"
        :label-position="labelPosition"
        :inline="true"
        :model="formLabelAlign"
      >
        <el-form-item label="名称">
          <el-input v-model="formLabelAlign.name"></el-input>
        </el-form-item>
        <el-form-item label="电话">
          <el-input v-model="formLabelAlign.phone"></el-input>
        </el-form-item>
        <el-form-item label="传真">
          <el-input v-model="formLabelAlign.fax"></el-input>
        </el-form-item>
        <el-form-item label="邮箱">
          <el-input v-model="formLabelAlign.email"></el-input>
        </el-form-item>
        <el-form-item label="地址">
          <el-input v-model="formLabelAlign.address"></el-input>
        </el-form-item>
        <el-form-item label="排序">
          <el-input v-model="formLabelAlign.Sorting"></el-input>
        </el-form-item>
        <el-form-item label="上下班时间">
          <el-input
            v-model="formLabelAlign.Sorting"
            placeholder="08:00-12:00|14:00-18:00"
          ></el-input>
        </el-form-item>
      </el-form>
      <el-button type="primary">保存</el-button>
      <el-button type="info">取消</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: "top",
      formLabelAlign: {
        name: "",
        images: "fa-circle-o",
        paths: "",
        Sorting: "",
        types: "菜单",
        label: "",
      },
    };
  },
  methods: {
    fanhuiClick() {
      this.$router.push("/home/userViews/department");
    },
  },
};
</script>

<style scoped lang="less">
.main {
  margin: 0;
  padding: 0;
  background-color: #ecf0f5;
  padding: 20px;
  box-sizing: border-box;
}
.header {
  float: right;
}
/deep/ .el-input__inner {
  width: 500px;
}

/deep/ .el-form--inline {
  padding: 0 10px;
}
</style>